﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/SiteMain.Master" Inherits="System.Web.Mvc.ViewPage<TvGuide.UI.Models.OnlineTVData>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
     <% = ViewData["name"]%> TV Online - Armenia TV online live | TVCuyc.am
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="FBOpenGraphTagsHolder" runat="server">
    <meta property="fb:app_id" content="197849216924945">
    <meta property="og:url" content="<% = ViewData["pageUrl"]%>"/>
    <meta property="og:title" content="Join To Watch <% = ViewData["displayName"] %> Online"/>
    <meta property="og:image" content="<% = ViewData["imgUrl"] %>"/>
    <meta property="og:description" content="TvCuyc - Դիտեք Օնլայն"/>
</asp:Content>
<asp:Content ID="OnlineTVPageMetaTags" ContentPlaceHolderID="MetaTagsHolder" runat="server">
    <meta name="Description" content="<%=ViewData["chOnlineMetaDesc"]%>"
    />
    <meta name="keywords" content="<% = ViewData["name"] %> tv, <% = ViewData["name"] %>, <% = ViewData["name"] %> tv Live, Watch <% = ViewData["name"] %> tv online, դիտել, հայկական, ծրագիր, օնլայն <%=ViewData["name"]%> " />
    <meta name="revisit-after" content="1 days" />
    <meta name="robots" content="index,follow" />
</asp:Content>

<asp:Content ID="HomeH1TagContent" ContentPlaceHolderID="H1TagContent" runat="server">
    <% = ViewData["name"] %> TV Online
</asp:Content>

<asp:Content ID="OnlineTv" ContentPlaceHolderID="MainContent" runat="server">
    <div id="fb-root"></div>
    <script type="text/jscript">
        
            setInterval(function(){ 
            var url = "/arm/OnlineTV/NotifyWatcher?chId=" + <% = ViewData["chId"] %>;
            $.ajax(
                {
                    url: url,
                    type: "get",
                    success: function () {}
                });
         }, 30000);
        
        
        
    (function (d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=197849216924945";
        fjs.parentNode.insertBefore(js, fjs);
    } (document, 'script', 'facebook-jssdk'));
    </script>
    
     <div class="Home-page_Channel_Div_Video">
            <div class="watch-listings">
                <a  class="tv-listings-link" href="/" >
                    <%:TVGuide.Common.Main.WATCH_PROGRAMS_LBL %>                  
                </a>
            </div>

            <% foreach (var chan in Model.ChVideoList) 
               {  
   
            %>
            <div class="Home-page_Channel_Div_Element_Container_Video">
            <% 
                   bool isselected = (ViewData["chan"] == chan.ChName);
                 %>
            <a href="/<%= ViewData["lng"]%>/Watch/<%= chan.ChName%>-tv-online">
                <div id="<%= chan.ChName %>"   style='background-color:<%=isselected?"#E0E0E0":"" %>' class="Home-page_Channel_Div_Element_Video" title=" <%: chan.ChDispName %>" >
                    <input id="txt<%= chan.ChName %>" type="hidden"></input>
                    <img class="Home-page_Channel_Div_Element_Img_Video" alt="<%: chan.ChName %>" src="<%: chan.ChImgUrl %>" /> 
                </div>
               </a>
            </div>
            <%} %>
      </div>

    <div id="tv-div" class="tv-div">
        <div class="channel-title watch-listings">
            <h2><%= ViewData["displayName"] %></h2>  
            <a class='a_fb_btn' target='_blank' href ='<%= ViewData["link"] %>' onclick="return popitup('<%= ViewData["link"] %>')"> <img class='fb_share' src='http://tvcuyc.am/Content/imgs/fb_share.gif' alt='Armenia TV' border='0' /> </a>
        </div>
      <% = ViewData["playerCode"]%>
    </div>

    <div id="acestream_download_info" style="display:<%= ViewData["player_help"] %>">
        <p>Եթե "Play" կոճակը սեղմելուց հետո ալիքի հեռարձակումը չի սկսվում, ներբեռնեք 
        <a href="http://dl.acestream.org/products/acestream-full/win/latest">Ace Stream (Windows)</a> ծրագրային ապահովումը: 
        </br>Եթե ունեք հեռարձակման հետ կապված խնդիրներ, ուղարկեք նամակ մեր <a href="https://www.facebook.com/tvcuyc" target="_blank">Facebook-ի էջի</a> միջոցով:
        </p>
    </div>
    
    <div class="fbCommentBox">
        <div class="fb-comments" data-href="<% = ViewData["pageUrl"]%>" data-num-posts="7" data-width="500"></div>
    </div>
    <div class="actualFacebookComments"><% = ViewData["facebookComments"] %> </div>


</asp:Content>

